home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Rat Attack (UK) (Digital Press Kit - Summer '99)
/
Rat Attack (UK) (Digital Press Kit - Summer '99).bin
/
RAT01.DIR
/
00001_Script_Main Movie
next >
Wrap
Text File
|
1999-04-26
|
2KB
|
110 lines
--Main Movie Script
on initialize
global count, logoSprite
set count = 1
set logoSprite to 10
set the soundLevel = 7
end
on chooseImage
global count,logoSprite
puppetSprite logoSprite, TRUE
if count = 1 then
set the castNum of sprite logoSprite to (the castNum of sprite logoSprite + 1)
set count = 2
else
if count = 2 then
set the castNum of sprite logoSprite to (the castNum of sprite logoSprite + 1)
set count = 3
else
if count = 3 then
set the castNum of sprite logoSprite to (the castNum of sprite logoSprite - 2)
set count = 1
end if
end if
end if
-- put the castNum of sprite logoSprite
end
on chooseImage2
global count,logoSprite
puppetSprite logoSprite, TRUE
if count = 1 then
set the castNum of sprite logoSprite to (the castNum of sprite logoSprite + 1)
set count = 2
else
if count = 2 then
set the castNum of sprite logoSprite to (the castNum of sprite logoSprite - 1)
set count = 1
end if
end if
-- put the castNum of sprite logoSprite
end
on chooseImage11
global count,logoSprite
puppetSprite logoSprite, TRUE
if count > 14 then
set the castNum of sprite logoSprite to (the number of cast "Gbrati")
set count = 1
else
set the castNum of sprite logoSprite to (the castNum of sprite logoSprite + 1)
set count = count + 1
end if
end
on doSound
global mySound
set mySound = "clik"
set theRandom = random(6)
if theRandom = 1 then
set mySound = "bird"
else
if theRandom = 2 then
set mySound = "iron"
else
if theRandom = 3 then
set mySound = "vox"
else
if theRandom = 4 then
set mySound = "squeek"
else
if theRandom = 5 then
set mySound = "punch"
else
if theRandom = 6 then
set mySound = "swipe"
end if
end if
end if
end if
end if
end if
end